<template>
   <div>
      <breadcrumb></breadcrumb>
   </div>
</template>

<script>
import store from '@/store';
export default {
   beforeRouteEnter(to,from,next){
      console.log('-------进入班主任组件----------');
      if(to.meta&&to.meta.breadcrumbList.length>0){
        console.log('&&&&&&&&&&&');
          store.commit('history/ADD_TABS',{
               path:to.path,
               title:to.meta.breadcrumbList[to.meta.breadcrumbList.length-1]
          })
      }
      next()
   }
}
</script>

<style>

</style>